<template>
  <div>
    <div class="cart-like-list">
      <div class="cart-like-tit">
        <div></div>
        <span><slot></slot></span>
      </div>
      <div class="cart-like-pic">
        <a href="javascript:;">
          <i class="iconfont icon-angle-left"></i>
        </a>
        <ul>
          <li class="like-list">
            <div>
              <img src="https://yanxuan-item.nosdn.127.net/6d8d6772df51fa60c2e899a16ac34718.png" alt="" />
              <p class="ellipsis">90%白鸭绒，儿童棒球领轻薄羽绒服73-140cm</p>
              <span>￥147</span>
            </div>
            <div>
              <img src="https://yanxuan-item.nosdn.127.net/6d8d6772df51fa60c2e899a16ac34718.png" alt="" />
              <p class="ellipsis">90%白鸭绒，儿童棒球领轻薄羽绒服73-140cm</p>
              <span>￥147</span>
            </div>
            <div>
              <img src="https://yanxuan-item.nosdn.127.net/6d8d6772df51fa60c2e899a16ac34718.png" alt="" />
              <p class="ellipsis">90%白鸭绒，儿童棒球领轻薄羽绒服73-140cm</p>
              <span>￥147</span>
            </div>
            <div>
              <img src="https://yanxuan-item.nosdn.127.net/6d8d6772df51fa60c2e899a16ac34718.png" alt="" />
              <p class="ellipsis">90%白鸭绒，儿童棒球领轻薄羽绒服73-140cm</p>
              <span>￥147</span>
            </div>
          </li>
        </ul>
        <a href="javascript:;">
          <i class="iconfont icon-angle-right"></i>
        </a>
      </div>
      <div class="article">
        <a href="javascript:;" class="active"></a>
        <a href="javascript:;"></a>
        <a href="javascript:;"></a>
        <a href="javascript:;"></a>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import { } from 'vue';
</script>

<style scoped lang="less">
@textColor: #666;
@priceColor: #cf4444;

.cart-like-list {
  background-color: #fff;
  margin-top: 20px;
  margin-bottom: 20px;

  .cart-like-tit {
    padding: 0 20px;
    height: 80px;
    display: flex;
    align-items: center;

    div {
      margin-right: 10px;
      width: 16px;
      height: 16px;
      position: relative;
      border-top: 4px solid @xtxColor;
      border-right: 4px solid @xtxColor;
      transform: rotate(45deg);

      &::before {
        content: '';
        display: block;
        position: absolute;
        bottom: 0;
        width: 10px;
        height: 10px;
        background-color: #bcf1e6;
      }
    }

    span {
      font-size: 20px;
      color: #333;
    }
  }

  .cart-like-pic {
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    >a {
      color: #ddd;

      i {
        font-size: 30px;
      }
    }

    ul {
      flex: 1;

      .like-list {
        display: flex;
        justify-content: space-around;

        div {
          display: flex;
          flex-direction: column;
          align-items: center;
          width: 240px;

          img {
            padding: 20px;
            width: 230px;
            height: 230px;
          }

          p {
            width: 100%;
            font-size: 16px;
            color: @textColor;
            padding: 0 40px;
          }

          span {
            color: @priceColor;
            font-size: 16px;
            margin-top: 15px;
          }
        }
      }
    }
  }

  .article {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;

    a {
      margin-left: 12px;
      display: block;
      width: 12px;
      height: 12px;
      background-color: rgba(0, 0, 0, 0.2);
      border-radius: 50%;
    }

    .active {
      background-color: @xtxColor;
    }
  }
}
</style>
